// import { SessionProvider } from 'next-auth/react'
import Head from "next/head";

import "@/styles/globals.css";
import { Layout } from "@/components";

const App = ({ Component, pageProps }) => (
  // <SessionProvider session={pageProps.session}>
  <>
    <Head>
      <meta name="viewport" content="width=device-width, initial-scale=1" />
      <link rel="icon" href="/favicon.png" />
      <title>
        FoodTrucks{pageProps?.seo?.title && ` | ${pageProps.seo.title}`}
      </title>
      <meta
        name="description"
        content={`${pageProps?.seo?.description || "Find lots of food trucks"}`}
      />
    </Head>
    <Layout>
      <Component {...pageProps} />
    </Layout>
  </>
  // </SessionProvider>
);

export default App;
